package com.ruoyi.squadweb.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 玩家统计信息对象 player_stats
 *
 * @author ruoyi
 * @date 2024-03-17
 */
public class PlayerStats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** SteamID */
    @Excel(name = "SteamID")
    private String steamid;

    /** EosID */
    @Excel(name = "EosID")
    private String eosid;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 服务器ID */
    @Excel(name = "服务器ID")
    private String serverid;

    /** 游戏时长（分钟） */
    @Excel(name = "游戏时长", readConverterExp = "分=钟")
    private Long playtime;

    /** 登录IP */
    @Excel(name = "登录IP")
    private String loginIp;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timestamp;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSteamid(String steamid)
    {
        this.steamid = steamid;
    }

    public String getSteamid()
    {
        return steamid;
    }
    public void setEosid(String eosid)
    {
        this.eosid = eosid;
    }

    public String getEosid()
    {
        return eosid;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setServerid(String serverid)
    {
        this.serverid = serverid;
    }

    public String getServerid()
    {
        return serverid;
    }
    public void setPlaytime(Long playtime)
    {
        this.playtime = playtime;
    }

    public Long getPlaytime()
    {
        return playtime;
    }
    public void setLoginIp(String loginIp)
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp()
    {
        return loginIp;
    }
    public void setTimestamp(Date timestamp)
    {
        this.timestamp = timestamp;
    }

    public Date getTimestamp()
    {
        return timestamp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("steamid", getSteamid())
            .append("eosid", getEosid())
            .append("nickname", getNickname())
            .append("serverid", getServerid())
            .append("playtime", getPlaytime())
            .append("loginIp", getLoginIp())
            .append("timestamp", getTimestamp())
            .toString();
    }
}
